// 引入项目中全部的全局组件
import SvgIcon from "@/components/SvgIcon/index.vue";
import Category from "@/components/Category/index.vue"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 全局对象
const allGloablComponent:any = {SvgIcon,Category}
// 对外暴露插件对象
export default{
    install(app: any){
        // 注册项目中全部的全局组件
        Object.keys(allGloablComponent).forEach((key)=>{
            app.component(key,allGloablComponent[key])
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
          }
    }
}